﻿@extends('layouts.home')
@section('info')
<title>{{Config::get('web.web_name')}}</title>
<meta name="keywords" content="{{$data->art_keywords}}" />
<meta name="description" content="{{$data->art_description}}" />
@endsection
@section('content')
  <article class="blogs">
    <div style="width:100%;height: 40px; line-height: 40px;border-bottom:1px solid #f1f1f1;padding-left:20px;background: url('{{url('resources/views/home/images/5849.png')}}') no-repeat left center;" class="t_nav"><span>您当前的位置：<a href="{{url('/')}}">首页</a>@if($data->_pid_name)&nbsp;&gt;&nbsp;<a href="{{url('cate/'.$data->cate_pid)}}">{{$data->_pid_name}}</a>@endif&nbsp;&gt;&nbsp;<a href="{{url('cate/'.$data->cate_id)}}">{{$data->cate_name}}</a></span></div>
    <div class="index_about">
      <h2 class="c_titile">{{$data->art_title}}</h2>
      <p class="box_c"><span class="d_time">发布时间：{{date('Y-m-d',$data->art_time)}}</span><span>编辑：{{$data->art_editor}}</span><span>查看次数：{{$data->art_view}}</span></p>
      <ul class="infos">
        {!! $data->art_content !!}
      </ul>
      <div class="keybq">
        <p><span>关键字词</span>：{{$data->art_tag}}</p>

      </div>
      <div class="ad"> </div>
      <div class="nextinfo">
        <p>上一篇：
          @if($article['pre'])
          <a href="{{url('a/'.$article['pre']->art_id)}}">{{$article['pre']->art_title}}</a>
            @else
          <span>没有上一篇文章了</span>
          @endif
        </p>
        <p>下一篇：
          @if($article['next'])
          <a href="{{url('a/'.$article['next']->art_id)}}">{{$article['next']->art_title}}</a>
            @else
          <span>没有下一篇文章了</span>
          @endif
        </p>
      </div>
      <div class="otherlink">
        <h2>相关文章</h2>
        <ul>
          @foreach($relevant as $r)
          <li><a href="{{url('a/'.$r->art_id)}}" title="{{$r->art_title}}">{{$r->art_title}}</a></li>
          @endforeach

        </ul>
      </div>
    </div>
    <aside class="right">
      <!-- Baidu Button BEGIN -->
      <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
      <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
      <script type="text/javascript" id="bdshell_js"></script>
      <script type="text/javascript">
        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
      </script>
      <!-- Baidu Button END -->
      <div class="blank"></div>
      <div class="news">
        @parent

      </div>

    </aside>
  </article>
@endsection


